package com.ecr.hub.model.composition;

import com.ecr.hub.model.AbstractIndicatorBaseHub;
import com.ecr.hub.model.wagon.Wagon;

/**
 * 
 * correspond à la table hub_compo
 * 
 * @author bba
 * 
 */
public class Composition extends AbstractIndicatorBaseHub {

	private static final long serialVersionUID = -8272260564565884868L;

	private int sillonId;
	private String destinationExtId;
	private String destinationLabel;
	private String destinationHexColor;
	private int destinationTypeBundleId;
	private int posRailId;
	private String railNumber;
	// Permet de récupérer la voie initiale après modification.
	private int posRailSaveId;
	private Wagon wagon;
	
	public Composition() {
		super();
	}

	public Composition(Wagon wagon) {
		super();
		this.wagon = wagon;
	}

	// GETTER AND SETTER
	

	public String getDestinationExtId() {
		return destinationExtId;
	}

	public int getSillonId() {
		return sillonId;
	}

	public void setSillonId(int sillonId) {
		this.sillonId = sillonId;
	}

	public void setDestinationExtId(String destinationExtId) {
		this.destinationExtId = destinationExtId;
	}

	public String getDestinationLabel() {
		return destinationLabel;
	}

	public void setDestinationLabel(String destinationLabel) {
		this.destinationLabel = destinationLabel;
	}

	public Wagon getWagon() {
		return wagon;
	}

	public void setWagon(Wagon wagon) {
		this.wagon = wagon;
	}

	public String getRailNumber() {
		return railNumber;
	}

	public void setRailNumber(String railNumber) {
		this.railNumber = railNumber;
	}

	public int getPosRailId() {
		return posRailId;
	}

	public void setPosRailId(int posRailId) {
		this.posRailId = posRailId;
	}

	public String getDestinationHexColor() {
		return destinationHexColor;
	}

	public void setDestinationHexColor(String destinationHexColor) {
		this.destinationHexColor = destinationHexColor;
	}

	public int getDestinationTypeBundleId() {
		return destinationTypeBundleId;
	}

	public void setDestinationTypeBundleId(int destinationTypeBundleId) {
		this.destinationTypeBundleId = destinationTypeBundleId;
	}

	public int getPosRailSaveId() {
		return posRailSaveId;
	}

	public void setPosRailSaveId(int posRailSaveId) {
		this.posRailSaveId = posRailSaveId;
	}
}
